package com.zego.wawaji.ui.play;

import android.widget.TextView;

import com.zego.wawaji.R;
import com.zego.wawaji.ui.base.recycler.BaseRecyclerViewAdapter;
import com.zego.wawaji.ui.base.recycler.BaseRecyclerViewHolder;

/**
 * 游戏页消息展示列表
 * Created by Su on 2017/11/26.
 */
public class PlaylistAdapter extends BaseRecyclerViewAdapter {
    @Override
    public int[] getItemLayouts() {
        return new int[]{R.layout.play_msg_list_item};
    }

    @Override
    public void onBindRecycleViewHolder(BaseRecyclerViewHolder viewHolder, int position) {
        String msg = (String) getItem(position);
        TextView content = viewHolder.findViewById(R.id.msg_content);
        content.setText(msg);
    }

    @Override
    public int getRecycleViewItemType(int position) {
        return 0;
    }
}
